package com.ebook.service;

import com.ebook.entity.User;
import org.apache.ibatis.javassist.compiler.ast.Keyword;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface UserService {
    boolean existUser(String userName);
    User selectUserByUserNameAndPassword(String userName,String password);
    List<User> selectAll();
    void deleteUser(User user);
    void addUser(User user);
    void updateUser(User user);
    void deleteUser(String userName, String password);
    void becomeVip(String userName);
    User selectUserByUserId(Integer userId);

}
